package com.day0907;

public class Text {
    public static void main(String[] args) {
        int num = 10;
        num = num + 5;
        num += 5;
        System.out.println(num);

        int num1 = 1;
        num1++;
        ++num1;
        System.out.println(num1);
//前++的运算符级别高于=  ，  后++的运算符级别低于=
        int num2 = 10;
        int sum = num2++;//sum = num2;  num2++
        System.out.println(num2);//11
        System.out.println(sum);//10

        int num3 = 10;
        int sum1 = num3++;// num2++;  sum = num2;
        System.out.println(num3);//11
        System.out.println(sum1);//11
    }
}
